package com.sdry.mapper.jyy;

import com.sdry.model.jyy.Dispatch;
import com.sdry.model.jyy.DispatchExample;
import com.sdry.model.llm.Department;
import com.sdry.model.llm.User;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DispatchMapper {
    int countByExample(DispatchExample example);

    int deleteByExample(DispatchExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Dispatch record);

    int insertSelective(Dispatch record);

    List<Dispatch> selectByExample(DispatchExample example);

    Dispatch selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Dispatch record, @Param("example") DispatchExample example);

    int updateByExample(@Param("record") Dispatch record, @Param("example") DispatchExample example);

    int updateByPrimaryKeySelective(Dispatch record);

    int updateByPrimaryKey(Dispatch record);

	List<Department> selectDepartment();

	List<User> selectUser();

	String queryDepartmentLeder(String name);
}